<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class BatchModel extends RelationModel {

    protected $_validate = array(
        
    );
    
    protected $_link = array(
        'Cascadedata' => array(
            'mapping_type'      => self::HAS_ONE,
            'mapping_key'       => 'province',
            'mapping_fields'    => 'dataname',
            'foreign_key'       => 'datavalue',
            'class_name'        => 'Cascadedata',
            'condition'         => 'datagroup = "schoolArea"',
            'as_fields'         => 'dataname:areaname'
        )
    );
}

